//
//  UIViewConstraintUtil.h
//  smartagent
//
//  Created by apple on 6/9/2017.
//  Copyright © 2017年 apple. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface UIViewConstraintUtil : NSObject


+ (NSLayoutConstraint *)view:(UIView *)view addHeightConstraint:(CGFloat)height;

+ (NSLayoutConstraint *)view:(UIView *)view addWidthConstraint:(CGFloat)width;

+ (NSLayoutConstraint *)addLeadingConstraintWithSuperView:(UIView *)superView subView:(UIView *)subView constant:(CGFloat)constant;

+ (NSLayoutConstraint *)addTrailingConstraintWithSuperView:(UIView *)superView subView:(UIView *)subView constant:(CGFloat)constant;

+ (NSLayoutConstraint *)addTopConstraintWithSuperView:(UIView *)superView subView:(UIView *)subView constant:(CGFloat)constant;

+ (NSLayoutConstraint *)addBottomConstraintWithSuperView:(UIView *)superView subView:(UIView *)subView constant:(CGFloat)constant;

+ (NSLayoutConstraint *)addCenterXConstraintWithSuperView:(UIView *)superView subView:(UIView *)subView;

+ (NSLayoutConstraint *)addCenterYConstraintWithSuperView:(UIView *)superView subView:(UIView *)subView;


@end
